{include file=member.header.html}
{include file="title.html"}
{include file=member.submenu.html}
<script>
    $(function() {
        $("#refund_add").submit(function() {
            if ($('#content').val() == '') {
                alert(lang.reason_cannot_be_empty);
                return false;
            }
            if ($('input[name="refund_cert"]').val() == '') {
                alert(lang.please_upload_documents);
                return false;
            }
        });
    });
</script>
<style>
    .refund_fefuse .red_btn{font-size: 16px;cursor: pointer;margin-bottom:10px;}
</style>


<div class="refund_fefuse">
    <form id="refund_add" method="post" enctype="multipart/form-data">
        <input type="hidden" name="refund_id" value="{$refund.refund_id}" />
        <ul class="form_content">
            <li>
                <h3>{$lang.refund_reason}：</h3>
                <p>
                    <textarea name="content" id="content" class="text" style="height:60px"></textarea>
                </p>
            </li>
            <li>
                <h3>{$lang.upload_document}：</h3><p><input type="file" name="refund_cert" /></p>
            </li>
            <li>
                <h3></h3><p><input type="submit" value="{$lang.submit}" class="red_btn" /></p>
            </li>
        </ul>
    </form>
    <ul class="form_content">
        <li>
            <h3>{$lang.refund_number}</h3>
            <p>{$refund.refund_sn|escape}</p>
        </li>
        <li>
            <h3>{$lalng.apply_date}</h3>
            <p>{$refund.created|date:Y-m-d H:i:s}</p>
        </li>
        <li>
            <h3>{$lang.refund_status}</h3>
            <p>
                {if $refund.status=='CLOSED'}
                {$lang.refund_colse}
                {elseif $refund.status=='SUCCESS'}
                {$lang.refund_succed}
                {elseif $refund.status=='FAILED'}
                {$lang.refund_fail}
                {elseif $refund.status=='WAIT_SELLER_AGREE'}
                {$lang.buyer_apply_refund}
                {elseif $refund.status=='SELLER_REFUSE_BUYER'}
                {$lang.seller_refused_refund}
                {elseif $refund.status=='WAIT_SELLER_CONFIRM'}
                {$lang.refund_apply_wait}
                {/if}	
            </p>
        </li>
        <li>
            <h3>{$lang.deal_amount}</h3>
            <p>
                {$refund.total_fee|price}
            </p>
        </li>
        <li>
            <h3>{$lang.refund_money}</h3>
            <p>
                {$refund.refund_fee|price}
            </p>
        </li>
        <li>
            <h3>{$lang.refund_reason}</h3>
            <p>
                {$refund.refund_reason|escape}
            </p>
        </li>
        <li>
            <h3>{$lang.refund_instruction}</h3>
            <p>
                {$refund.refund_desc|escape}
            </p>
        </li>
    </ul>
</div>


{include file=footer.html}